﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true"
    CodeFile="EditSessionResult.aspx.cs" Inherits="EditSessionResult" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <h3 class="page-title">
            Edit Result<small></small>
        </h3>
        <%--<ul class="breadcrumb">
            <li><i class="icon-home"></i>Entry<span class="icon-angle-right"> </span></li>
            <li>Session Result<span class="icon-angle-right"></span></li>
        </ul>--%>
        <div class="alert alert-danger" id="layerError" runat="server" style="display: none;">
        </div>
        <div class="alert alert-success" id="layerSuccess" runat="server" style="display: none;">
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Edit Session Result</div>
                    </div>
                    <div class="portlet-body form">
                        <div class="form-horizontal form-view">
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Select Match<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:DropDownList ID="drpMatch" runat="server" OnSelectedIndexChanged="drpMatch_SelectedIndexChanged"
                                                AutoPostBack="true">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvMatch" runat="server" ErrorMessage="Please select match"
                                                InitialValue="0" ValidationGroup="SaveRuns" CssClass="required" ControlToValidate="drpMatch"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Select Team<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:DropDownList ID="drpTeam" runat="server" OnSelectedIndexChanged="drpTeam_SelectedIndexChanged"
                                                AutoPostBack="true">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvTeam" runat="server" ErrorMessage="Please selecct team"
                                                InitialValue="0" ValidationGroup="SessionResult" CssClass="required" ControlToValidate="drpTeam"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="portlet box blue">
                            <div class="portlet-title">
                                <div class="caption" id="Team1Name" runat="server">
                                </div>
                                <asp:HiddenField ID="hdnTeam1Id" runat="server" />
                            </div>
                            <div class="portlet-body form" id="Div1">
                                <div class="row-fluid">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <div class="span12">
                                                <div class="row-fluid">
                                                    <div class="row-fluid">
                                                        <div class="span3">
                                                            <div class="control-group storeentry">
                                                                <div class="controls">
                                                                    <label>
                                                                        Over</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="span3">
                                                            <div class="control-group storeentry">
                                                                <div class="controls">
                                                                    <label>
                                                                        Runs</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <asp:Repeater ID="rptSession" runat="server">
                                                        <ItemTemplate>
                                                            <div class="row-fluid">
                                                                <div class="span3">
                                                                    <div class="control-group">
                                                                        <div class="controls">
                                                                            <asp:TextBox ID="txtId" Text='<%#Eval("Id") %>' Visible="false" runat="server" CssClass="m-wrap span10"></asp:TextBox>
                                                                            <asp:TextBox ID="txtOver" Text='<%#Eval("Over") %>' Enabled="false" runat="server"
                                                                                CssClass="m-wrap span10"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span3">
                                                                    <div class="control-group storeentry">
                                                                        <div class="controls">
                                                                            <asp:TextBox ID="txtRuns" runat="server" Text='<%#Eval("Runs") %>' CssClass="m-wrap span10 txtRuns"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </div>
                                            </div>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn red" OnClick="btnSubmit_Click" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
